package com.dubito.unsplashapp.domain.collection

import com.dubito.unsplashapp.data.collection.CollectionService
import com.dubito.unsplashapp.domain.BaseDataSourceFactory
import kotlinx.coroutines.CoroutineScope
import com.dubito.unsplashapp.data.collection.model.Collection

class CollectionDataSourceFactory(
    private val collectionService: CollectionService,
    private val order: CollectionDataSource.Companion.Order,
    private val scope: CoroutineScope
) : BaseDataSourceFactory<Collection>() {

    override fun createDataSource() = CollectionDataSource(collectionService, order, scope)
}
